import request from '@/utils/request'

// 删除文件
export function deleteFile(id) {
  return request({
    url: '/infra/file/delete?id=' + id,
    method: 'get'
  })
}

// 获得文件分页
export function getFilePage(query) {
  return request({
    url: '/infra/file/page',
    method: 'get',
    params: query
  })
}
// 获得离职人员记录
export function getUserDepart(query) {
  return request({
    url: '/system/user/page-depart-user',
    method: 'get',
    params: query
  })
}
// 搜索离职人员
export function getDepartStaff(nickname) {
  return request({
    url: '/system/user/get-depart-staff?nickname='+nickname,
    method: 'get',
    // params: query
  })
}
//获得变更人员记录
export function getUservary(query) {
  return request({
    url: '/system/user/page-vary-user',
    method: 'get',
    params: query
  })
}
//通过name获得指定变更人员记录
export function getUservaryByName(nickname) {
  return request({
    url: '/system/user/get-vary-user?nickname=' + nickname,
    method: 'get',
   // params: query
  })
}